

<?php

if(!(empty($this->object))){
	?>
	<a href="/sailorbase-a/sailorbase-a/public/yachtclub/search/<?php echo $this->escape($this->entry['id']);?>">new Search</a>
	</br>
	<table>
		<tr>
			<th>Profillink</th>
			<th>Name</th>
			<th>Revier</th>
			<th>Land</th>
			<th>Stadt</th>
			<th>Adresse</th>
			<th>Saison</th>
			<th>Entfernung zum Hafen</th>
		</tr>
	<?php 
	foreach ($this->object as $array){
		?>
		<tr>
			<td><a href="<?php echo $this->baseUrl() ?>/yachtclub/show/locationid/<?php echo $this->escape($array['id']);?>">Yachtclubprofil</a></td>
			<td><?php echo $this->escape($array['name']);?></td>
			<td><?php echo $this->escape($array['revier']);?></td>
			<td><?php echo $this->escape($array['land']);?></td>	
			<td><?php echo $this->escape($array['stadt']);?></td>
			<td><?php echo $this->escape($array['adresse']);?></td>
			<td><?php echo $this->escape($array['saisonzeitbeginn']);?> - <?php echo $this->escape($array['saisonzeitende']);?></td>
			<td><?php echo $this->escape($array['hafenweg']);?></td>
		</tr>
		<?php 
	}
	?>
	</table>
	<?php 
}
else{
	echo $this->form;
}

?>